#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: api11_roles.py
@version:
@time: 2022/05/05 
"""
from TapClientCore.T02_tm_api.v2_api.v2_api_base import *


class Api11RolesUrl(V2ApiUrlBase):
    url_roles = api_joint(V2ApiUrlBase().server, ROLES)


class Api11Roles(V2ApiBase):

    def get_roles(self):
        response = self.tapclient(
            self.get,
            Api11RolesUrl.url_roles
            + self.access_token
        )
        return response
